import sys

a=124
b=123
MAX_INT=sys.maxsize
intlength=32
result=0
if MAX_INT>2<<33:
    print("64位计算机MAX_INT",MAX_INT)
    intlength=64
else:
    print("32位计算机MAX_INT",MAX_INT)
    intlength=32

print("a==",a,",b==",b)

for i in range(0,intlength):
    singleBit=b&0x01
    if(singleBit==0x01) :
        result+=a
    
    b=b>>1
    a=a<<1
print("reslut==",result)

